<template>
<div>
    <h1>我是日历信息</h1>
    <div class="main">
        <p class="prefix iconfont icon-rilicalendar49"></p>
        <input type="text" class="ly-input" v-model="value"  placeholder="请输入您的信息"/>
        <p class="suffix iconfont icon-shanchu3" @click="clearModelValue"></p>
    </div>
</div>
</template>

<script>
export default {
  name: 'time-select',
  data () {
    return {
      value: ''
    }
  },
  methods: {
    clearModelValue () {
      this.value = ''
    }
  }
}
</script>

<style lang="less">
.main {
    display: flex;
    height: 30px;
    // justify-content: center;
    align-items: center;
    border: 1px solid #ff00ee;
    border-radius: 5px;
    padding: 5px 5px;

    .prefix {}

    .suffix {
        cursor: pointer;
    }

    .ly-input {
        margin: 0 5px;
        border: 0;
        height: 100%;
        width: 100%;

        &:focus {
            border: 0;
            outline: 0;
        }
    }
}
</style>
